package com.daoeping.service.impl;

import com.daoeping.dao.Bzn_answerDAO;
import com.daoeping.data.Bzn_answer;
import com.daoeping.data.Bzn_question;
import com.daoeping.domain.JsonData;
import com.daoeping.domain.Page;
import com.daoeping.domain.TableData;
import com.daoeping.service.Bzn_answerService;

public class Bzn_answerServiceImpl implements Bzn_answerService {
	private Bzn_answerDAO bzn_answerDAO;
	
	public Bzn_answerDAO getBzn_answerDAO() {
		return bzn_answerDAO;
	}

	public void setBzn_answerDAO(Bzn_answerDAO bzn_answerDAO) {
		this.bzn_answerDAO = bzn_answerDAO;
	}

	@Override
	public boolean addBzn_answer(Bzn_answer bzn_answer) {
		return bzn_answerDAO.insertData(bzn_answer);
	}

	@Override
	public JsonData findAllBzn_answerByPage(Page page, TableData tableData,
			Bzn_question bzn_question) {
		return bzn_answerDAO.findAllBzn_answerByPage(page, tableData, bzn_question);
	}

	@Override
	public boolean delBzn_answerByQuestionId(Bzn_question bzn_question) {
		return bzn_answerDAO.delBzn_answerByQuestionId(bzn_question);
	}

}
